#include "view_time_6.h"
#include "view_time_6.inc"
#include "display_ctrl.h"
#include "platform_assert.h"
#include "lfs_file_manager_auto.h"
#include "rtc.h"
#include "datetime.h"
#include "blecom.h"
#include "battery_ctrl.h"
#include "sport_his.h"
#include "display_ctrl.h"
#include "display_interface.h"
#include "datetime.h"
#include "heart_rate_interface.h"
#include "font_mngr.h"
//#include "view_common.h"
#include "app_trace.h"

void view_time_6_display(void)
{
    //    int hour = 0;
    //    int minute = 0;
    int week_index = 0;
    //   hour = disp_ctrl.com_data.u_temp[6];
    //   minute = disp_ctrl.com_data.u_temp[7];
    week_index = disp_ctrl.com_data.u_temp[9] - 1;

    draw_on_chip_image(0, 0, time_6_back);
    const unsigned char *week_img = time_6_week_TAB[week_index];
    draw_on_chip_image_ext(28, 123, week_img, draw_type_filter_color);
    draw_on_chip_unzip_image_rotate(gImage_time_6_hour, 0, 27, (40 << 16) | 80, disp_ctrl.com_data.i_temp[12], -1, false);
    draw_on_chip_unzip_image_rotate(gImage_time_6_minute, 0, 40, (40 << 16) | 80, disp_ctrl.com_data.i_temp[13], -1, false);
}
